package com.scau.clothes.dao;

import com.scau.clothes.pojo.UserMoney;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;

@Mapper
@Repository
public interface UserMoneyDao {
    int updateCostByUserId(@Param("userId") int userId, @Param("cost") BigDecimal cost);

    /**
     * 返回字段 userId,money cost
     * @param userId
     * @return
     */
    UserMoney getMoneyByUserId(int userId);
}
